﻿// Copyright © Microsoft Corporation. All Rights Reserved. 
// This code released under the terms of the
// Microsoft Public License (MS-PL, http://opensource.org/licenses/ms-pl.html.) 

using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;

namespace smarx.BlobSync
{
    public class Node : IRunner
    {
        public IEnumerable<string> DetectionFiles
        {
            get
            {
                return new[] {
                    "app.js",
                    @"src\app.coffee"
                };
            }
        }
        public IEnumerable<CommandWithArguments> DependencyCommands
        {
            get
            {
                return new[] {
                    new CommandWithArguments("node", "/usr/bin/coffee -o . src/*.coffee"),
                    new CommandWithArguments("node", "/usr/bin/npm install --verbose")
                };
            }
        }

        public CommandWithArguments RunCommand
        {
            get
            {
                return new CommandWithArguments("node", "app.js");
            }
        }
    }
}